<!DOCTYPE html>
<html>
<head>
    <title>安全中心</title>
</head>
<body>
<h3>修改密码</h3>

<form action="/modpw?on_click=yanzheng" method="post">
    邮&nbsp&nbsp&nbsp&nbsp箱:<input type="text" name="emailaddr" value="{{.Addr}}" id="addr">
    <input type="submit" value="验证">
</form></br>

<form action="/modpw?on_click=mod" method="post" id="zc">
    验证码:<input type="text" name="vercode" value="{{.VerCode}}"></br></br>
    用户名:<input type="text" name="username" value="{{.UserName}}" readonly="readonly">&nbsp&nbsp&nbsp&nbsp
    密&nbsp&nbsp&nbsp&nbsp码:<input type="password" name="password" value="{{.Password}}">
    <input type="button" value="修改" onclick="reg()" />
</form></br>
<script>
    function reg(){
        var f = document.getElementsByTagName("form")[1];
        f.action=f.action+"&emailaddr="+document.getElementById("addr").value;
        f.submit()
    }
</script>

<b><i>{{.Tip}}</i></b>
</body>
</html>